<?php

class Backoffice_DevController extends CC_Controller
{
    public function indexAction()
    {
        /*$ticket = $this->_em->getRepository('CC\Entity\Ticket')->findOneById(4);
        $user = $this->_em->getRepository('CC\Entity\User')->findOneById(5);
        
        $parser = new CC_Helpdesk_RuleParser(new CC_Helpdesk_ActionParser($this->_em), $ticket, $user);
        $parser->parse();*/
        $blah = new Zend_Http_Client();
        $blah->setAuth('steven', '5k1ppy', Zend_Http_Client::AUTH_BASIC);
        $client = new Zend_XmlRpc_Client('http://192.9.199.11/technofresh/login/rpc', $blah);
        //Zend_Debug::dump($client, "XML Client");
        echo '<pre>';
        print_r($client->call('ticket.get', 2));
        echo '</pre>';
        
        Zend_Debug::dump($client->call('ticket.get', 2), 'Get ticket 1');
        Zend_Debug::dump($client->call('ticket.version.getAll'), 'All versions');
        Zend_Debug::dump($client->call('ticket.getActions', 2), 'Get ticket actions');
        Zend_Debug::dump($client->call('ticket.changeLog', 2), 'Get Changelog');
    }
}
